//
//  WSShopInfoNextViewa.m
//  LANGirl
//
//  Created by 杨泓晔 on 16/3/12.
//  Copyright © 2016年 杨泓晔. All rights reserved.
//

#import "WSShopInfoNextView.h"

@interface WSShopInfoNextView ()



@end

@implementation WSShopInfoNextView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self createSubView];
    }
    return self;
}

- (void)createSubView {
    
    //下一步
    self.button = [UIButton buttonWithType:UIButtonTypeCustom];
    self.button.backgroundColor = GH;
    self.button.layer.masksToBounds = YES;
    self.button.layer.cornerRadius = 5;
    [self.button setTitle:@"完 成" forState:UIControlStateNormal];
    [self.button addTarget:self action:@selector(goNext:) forControlEvents:UIControlEventTouchUpInside];
    [self.button setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
   // [self.button setTitleColor:HS forState:UIControlStateNormal];
    self.button.frame = CGRectMake(50.00*AUTO_WIDTH, 600.00*AUTO_WIDTH, 275.00*AUTO_WIDTH, 40.00*AUTO_WIDTH);
    self.button.titleLabel.font = [UIFont fontWithName:@"Arial" size:LOGINFONT * TEXTWEIGHT];
    [self addSubview:_button];
    
    [self.button mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.center.equalTo(self);
        make.size.mas_equalTo(CGSizeMake(SCREEN_WIDTH - 88/2 * AUTO_WIDTH, 78/2 * AUTO_HEIGHT));
    }];
}

- (void)setTitleStr:(NSString *)titleStr {

    _titleStr = titleStr;
    [self.button setTitle:titleStr forState:UIControlStateNormal];
}

- (void)goNext:(UIButton *)btn {

    [self.delegate nextAction];
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
